package com.czk.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.DispatcherServlet;

/**
 * 配置类，加载前端控制器
 * 可以替换为响应式编程接口
 *
 * @Author:ChenZhangKun
 * @Date: 2021/4/27 17:09
 */
@Configuration
public class MyConfig {
    @Bean
    public DispatcherServlet dispatcherServlet() {
        return new DispatcherServlet();
    }
}

